home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2128 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  926 b 

  1. Path: cc.gatech.edu!culbreth
  2. From: culbreth@cc.gatech.edu (Matthew W. Culbreth)
  3. Newsgroups: comp.lang.c++
  4. Subject: Using a Base constructor for a derived class
  5. Date: 15 Jan 1996 11:15:05 -0500
  6. Organization: College of Computing, Georgia Tech
  7. Message-ID: <4ddui9$a14@felix.cc.gatech.edu>
  8. NNTP-Posting-Host: felix.cc.gatech.edu
  9. NNTP-Posting-User: culbreth
  10.  
  11. Howdy,
  12.  
  13. I have a base class with a constructor.  This class is never used
  14. in my application.  I have three classes derived from this class.
  15.  
  16. When I create an instant of one of the derived class, I want to use the 
  17. constructor from the base class.  The compiler is stating that it can't find 
  18. the constructor for the arguments passed for any of the derived classes.
  19. Are constructors inherited the same as member functions?
  20.  
  21. Thanks a lot,
  22.  
  23. Matt
  24.  
  25. -- 
  26.                     
  27.             -Matthew W. Culbreth (culbreth@cc.gatech.edu)
  28.                 -CS student
  29.                 -Georgia Tech, College of Computing
  30.